package com.cqupt.scanning.system.acl.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cqupt.scanning.system.acl.entity.AclRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cqupt.scanning.system.acl.entity.vo.RoleVO;
import com.cqupt.scanning.system.utils.result.R;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 宋宝梁
 * @since 2021-07-05
 */
public interface AclRoleService extends IService<AclRole> {

    List<String> selectRoleByUserId(Integer userId);

    R addRole(RoleVO roleVO);

    R getOneRole(Integer roleId);

    R getAllRole(Page<AclRole> page, String query);

    R updateRole(RoleVO roleVO);

    R removeRoleById(Integer roleId);
}
